<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../js/jquery-3.3.1.min.js"></script>
<body>
        <div id="div1">我是div1</div>
        <div id="div2">我是div2</div>
</body>
<script>
    onload =function () {
            let div1 = $("#div1");
            alert(div1.html())
    }

</script>

</html>